package cn.wolfcode.luowowo.comment.domain;

import cn.wolfcode.luowowo.common.util.StringUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 点评回复
 */
@Getter
@Setter
@Document("scenery_reply")
public class SceneryReply implements Serializable {

    public static final int SCENERY_COMMENT_TYPE_COMMENT = 0; //普通回复
    public static final int SCENERY_COMMENT_TYPE = 1; //回复的回复

    @Id
    private String id;              //默认id
    private String commentId;          //景点点评id

    private Long userId;            //用户id
    private String username;        //用户名
    private int userLevel;          //用户等级
    private String headUrl;         //头像

    private Date createTime;        //创建时间

    private String content;         //回复内容

    private int type = SCENERY_COMMENT_TYPE_COMMENT; //回复类别

    private SceneryReply refReply;  //关联的评论


}
